<!DOCTYPE html>
<html class="um landscape min-width-240px min-width-320px min-width-480px min-width-768px min-width-1024px">
<head>
<title></title>
<meta charset="utf-8">
<meta name="viewport" content="target-densitydpi=device-dpi, width=device-width, initial-scale=1, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
<meta name="copyright" content="http://www.appcms.org" />
<link rel="stylesheet" href="skin/base.css">
<link rel="stylesheet" href="skin/search.css">
<script src="js/zy_control.js"></script>
<script src="js/zy_click.js"></script>
<script src="js/config.js"></script>
<script src="js/common.js"></script>
</head>
<body ontouchstart>
<div id="main" class="box-ver box">

  <div id="header">
  	<div class="title">
  		<span class="l icon back" ontouchstart="zy_touch('act')" onclick="goBack();"></span>
		<span class="txt">资讯搜索</span>
	</div>
  </div>
  
  <div id="search" class="search">
    <form class="box-hor box" name="my">
      <em></em>
      <div>
        <input id="search" name="search" type="search" placeholder="请输入资讯关键字" oninput="if(this.value==''){$$('cancel').className='';}else{$$('cancel').className='show';}" />
      </div>
      <label id="cancel" for="search" onclick="my.search.onfocus()"></label>
    </form>
  </div>
  <div id="content"></div>
</div>
</body>
<script>
    	zy_init();
		localStorage['keyword']=localStorage['keyword']?localStorage['keyword']:'';		
		function goBack(){
			localStorage.removeItem('keyword');
			uexWindow.windowBack(1);
			uexWindow.close(-1);
		}
		my.onsubmit=function(event){
			event.preventDefault();
			with (this) {
				if(trim(search.value)!=''){
					localStorage['keyword']=trim(search.value);
					uexWindow.evaluatePopoverScript('','content','getMain(-1)');
					search.blur();					
				}else{
					uexWindow.alert('','关键字不能为空','确定');
				}
			}
		}
		my.search.onfocus = function(event){
			$$('cancel').className='';my.reset();
		}
		my.search.onblur = function(){
			$$('search').value=localStorage['keyword'];
			if(localStorage['keyword']!=''){$$('cancel').className='show';}
		}
        window.uexOnload = function(type){
            if (!type){
				my.search.onblur();
                zy_con("content", "news_search_content.html", 0, $$("header").offsetHeight+$$("search").offsetHeight);
            }
			window.onorientationchange=window.onresize=function()
			{
				zy_resize("content",0,$$("header").offsetHeight+$$("search").offsetHeight);
			}
        }
    </script>
</html>